package umacis.data.description;

import umacis.core.Umacis;
import umacis.data.Bindings;
import umacis.data.view.ApplicationView;
import umacis.lwuitcomponent.property.Properties;
import umacis.lwuitcomponent.property.PropertyAssigner;

import com.sun.lwuit.Dialog;
import com.sun.lwuit.Form;



public class ApplicationViewDescription extends ContainerDescription implements ViewDescription  {
	private boolean isDialog;
	//private Bindings bindings;

	public ApplicationViewDescription(String uniqueName) {
		super(uniqueName);
	}
	
	public Form build(Properties appWideProperties) {
		Form form = null;
		if (isDialog) form = new Dialog();
		else form = new Form();
		form.putClientProperty("Description", this);
		PropertyAssigner.getInstance().applyProperties(form.getContentPane(),properties.defaultingTo(appWideProperties));
		buildContainer(form.getContentPane(), propertiesToImpose.defaultingTo(appWideProperties));
		return form;
	}

	public Bindings getBindings() {
		return bindings;
	}

	
	
	
	
	

	
}
